<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your module. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('/api', function (Request $request) {
    //return $request->api();
})->middleware('auth:api');

//公共接口
Route::post('sendCode','BaseController@sendCode')->name('api.sendCode');//发送验证码
Route::post('upload','BaseController@upload')->name('api.upload');//上传单文件
Route::get('getUniRegion','BaseController@getUniRegion')->name('api.getUniRegion');//获取省市区
Route::get('pushMsg','BaseController@pushMsg')->name('api.pushMsg');//手动推送消息
Route::get('ceshi','BaseController@ceshi')->name('api.ceshi');//测试接口